home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / demos / dms4demo.zip / REINSTAL.CMD < prev   
OS/2 REXX Batch file  |  1993-01-24  |  10KB  |  205 lines

  1. echo off
  2. cls
  3. if /%1==/ goto error2
  4. if /%2==/ goto error3
  5. if /%1==%2/ goto error1
  6. echo  ╔═════════════════════════════════════════════════════════════════╗
  7. echo  ║                                                                 ║
  8. echo  ║                       DMS/IB Installation                       ║
  9. echo  ║                                                                 ║
  10. echo  ║           Disk Management System / Intelligent Backup           ║
  11. echo  ║             Copyright 1992 Sterling Software, Inc.              ║
  12. echo  ║                                                                 ║
  13. echo  ╠═════════════════════════════════════════════════════════════════╣
  14. echo  ║                                                                 ║
  15. echo  ║   DMS/IB is being reinstalled from floppy disk %1:               ║
  16. echo  ║   to hard disk drive %2:                                         ║
  17. echo  ║                                                                 ║
  18. echo  ╟─────────────────────────────────────────────────────────────────╢
  19. echo  ║                                                                 ║
  20. echo  ║ Press (CTRL/BREAK) if you do not wish to continue with install. ║
  21. echo  ║                                                                 ║
  22. echo  ╚═════════════════════════════════════════════════════════════════╝
  23. pause
  24. cls
  25. echo  ╔═════════════════════════════════════════════════════════════════╗
  26. echo  ║                                                                 ║
  27. echo  ║                       DMS/IB Installation                       ║
  28. echo  ║                                                                 ║
  29. echo  ║           Disk Management System / Intelligent Backup           ║
  30. echo  ║             Copyright 1992 Sterling Software, Inc.              ║
  31. echo  ║                                                                 ║
  32. echo  ╠═════════════════════════════════════════════════════════════════╣
  33. echo  ║                                                                 ║
  34. echo  ║  Installation will use the existing directory \DMSDIR.  The     ║
  35. echo  ║  backup index, backup selection criteria, and system options    ║
  36. echo  ║  will be maintained from the previous version.  There is no     ║
  37. echo  ║  limit to the number of times you can install DMS/IB.           ║
  38. echo  ║                                                                 ║
  39. echo  ║  WARNING!  Do not use the REINSTAL procedure if you are         ║
  40. echo  ║  currently using Intelligent Backup version 3.3 or lower.       ║
  41. echo  ║  See the README file for details and circumventions or use      ║
  42. echo  ║  the INSTALL procedure instead.                                 ║
  43. echo  ║                                                                 ║
  44. echo  ╟─────────────────────────────────────────────────────────────────╢
  45. echo  ║                                                                 ║
  46. echo  ║ Press (CTRL/BREAK) if you do not wish to continue with install. ║
  47. echo  ║                                                                 ║
  48. echo  ╚═════════════════════════════════════════════════════════════════╝
  49. pause
  50. cls
  51. echo  ╔═════════════════════════════════════════════════════════════════╗
  52. echo  ║                                                                 ║
  53. echo  ║                       DMS/IB Installation                       ║
  54. echo  ║                                                                 ║
  55. echo  ║           Disk Management System / Intelligent Backup           ║
  56. echo  ║             Copyright 1992 Sterling Software, Inc.              ║
  57. echo  ║                                                                 ║
  58. echo  ╠═════════════════════════════════════════════════════════════════╣
  59. echo  ║                                                                 ║
  60. echo  ║    NOT FOR EXPORT!                                              ║
  61. echo  ║                                                                 ║
  62. echo  ║    This product is subject to state department regulations.     ║
  63. echo  ║                                                                 ║
  64. echo  ║    For use in the USA only.                                     ║
  65. echo  ║                                                                 ║
  66. echo  ╟─────────────────────────────────────────────────────────────────╢
  67. echo  ║                                                                 ║
  68. echo  ║ Press (CTRL/BREAK) if you do not wish to continue with install. ║
  69. echo  ║                                                                 ║
  70. echo  ╚═════════════════════════════════════════════════════════════════╝
  71. pause
  72. cls
  73. echo Reinstall started....
  74. %2:
  75. cd \DMSDIR
  76. if exist DMSPCOPT.DAT goto dmspc
  77. goto continue
  78. :dmspc
  79. if exist IBOPTN.DAT del DMSPCOPT.DAT
  80. if not exist IBOPTN.DAT ren DMSPCOPT.DAT IBOPTN.DAT
  81. :continue
  82. if not exist IBOPTN.DAT   goto error4
  83. if not exist FILEEXCL.TXT goto error4
  84. if exist IBOPTN.SAV del IBOPTN.SAV
  85. if exist FILEEXCL.SAV del FILEEXCL.SAV
  86. if exist HISTORY.SAV  del HISTORY.SAV
  87. ren IBOPTN.DAT   IBOPTN.SAV >nul
  88. ren FILEEXCL.TXT FILEEXCL.SAV >nul
  89. if exist HISTORY.TXT ren HISTORY.TXT  HISTORY.SAV >nul
  90. if exist HELP.DAT      del HELP.DAT
  91. if exist HELP.NDX      del HELP.NDX
  92. if exist MSG.DAT       del MSG.DAT
  93. if exist IB.EXE        del IB.EXE
  94. if exist AUTOINST.EXE  del AUTOINST.EXE
  95. if exist README        del README
  96. if exist IBT*.*        del IBT*.*
  97. if exist IBUBN.OVL     del IBUBN.OVL
  98. if exist IB.CMD        del IB.CMD
  99. if exist IBSTART.CMD   del IBSTART.CMD
  100. cls
  101. echo PLEASE WAIT. Copying DMS/IB program files ...
  102. %1:
  103. cd\dmsdir
  104. copy %1:\dmsdir %2:\dmsdir
  105. %2:
  106. echo please wait, confirming proper installation ...
  107. if exist IBCONV.* del IBCONV.*
  108. cls
  109. copy IBOPTN.SAV IBOPTN.DAT >nul
  110. del  IBOPTN.SAV
  111. copy FILEEXCL.SAV FILEEXCL.TXT >nul
  112. del  FILEEXCL.SAV
  113. if exist HISTORY.SAV copy HISTORY.SAV HISTORY.TXT >nul
  114. if exist HISTORY.SAV del  HISTORY.SAV
  115. if not exist IBOPTN.DAT   goto error5
  116. if not exist IBUBN.OVL    goto error5
  117. if not exist HELP.DAT     goto error5
  118. if not exist HELP.NDX     goto error5
  119. if not exist MSG.DAT      goto error5
  120. if not exist IB.EXE       goto error5
  121. if not exist FILEEXCL.TXT goto error5
  122. if not exist IBT2LANG.DAT goto error5
  123. if not exist IBT4LANG.DAT goto error5
  124. if not exist AUTOINST.EXE goto error5
  125. if not exist IBT2INST.DAT goto error5
  126. if not exist IBSTART.CMD  goto error5
  127. autoinst %1 %2 R
  128. pause
  129. cd \
  130. if exist CONFIG.IBS del CONFIG.IBS
  131. cd \DMSDIR
  132. if exist AUTOINST.EXE del AUTOINST.EXE
  133. if exist IBT2INST.DAT del IBT2INST.DAT
  134. cls
  135. echo  ╔═════════════════════════════════════════════════════════════════╗
  136. echo  ║                                                                 ║
  137. echo  ║   Install Complete.  Just type "IB" to start your first backup. ║
  138. echo  ║                                                                 ║
  139. echo  ║   Be sure to print and read the README file that is included    ║
  140. echo  ║   on the installation diskette.  You will find information on   ║
  141. echo  ║   the latest beta testing status.                               ║
  142. echo  ║                                                                 ║
  143. echo  ╚═════════════════════════════════════════════════════════════════╝
  144. goto end
  145. :error1
  146. cls
  147. echo  ╔═════════════════════════════════════════════════════════════════╗
  148. echo  ║ Error - Floppy and Hard disk drive ID are the same              ║
  149. echo  ╚═════════════════════════════════════════════════════════════════╝
  150. goto error
  151. :error2
  152. cls
  153. echo  ╔═════════════════════════════════════════════════════════════════╗
  154. echo  ║ Error - Floppy and Hard disk drive IDs not specified            ║
  155. echo  ╚═════════════════════════════════════════════════════════════════╝
  156. goto error
  157. :error3
  158. cls
  159. echo  ╔═════════════════════════════════════════════════════════════════╗
  160. echo  ║ Error - Hard disk drive ID not specified                        ║
  161. echo  ╚═════════════════════════════════════════════════════════════════╝
  162. goto error
  163. :error4
  164. cls
  165. echo  ╔═════════════════════════════════════════════════════════════════╗
  166. echo  ║ ERROR......                                                     ║
  167. echo  ║ Some required files missing, unable to reinstall.  We suggest   ║
  168. echo  ║ that you use install procedure and then restore indexes from    ║
  169. echo  ║ the last backup diskette.                                       ║
  170. echo  ╚═════════════════════════════════════════════════════════════════╝
  171. goto end
  172. :error5
  173. echo  ╔═════════════════════════════════════════════════════════════════╗
  174. echo  ║                                                                 ║
  175. echo  ║ Insallation Failed!  This may be due to insufficient disk space ║
  176. echo  ║ or disk I/O error.  Confirm that 500K of usable disk space is   ║
  177. echo  ║ available, then begin installation again.                       ║
  178. echo  ║                                                                 ║
  179. echo  ╚═════════════════════════════════════════════════════════════════╝
  180. pause
  181. echo off
  182. cls
  183. echo please wait ...
  184. cd \
  185. if exist IB.CMD      del IB.CMD
  186. goto end
  187. :error
  188. echo  ╔═════════════════════════════════════════════════════════════════╗
  189. echo  ║                                                                 ║
  190. echo  ║         Install failed!  Check for proper command syntax.       ║
  191. echo  ║                                                                 ║
  192. echo  ║       floppy-letter:REINSTAL floppy-letter hard-disk-letter     ║
  193. echo  ║                                                                 ║
  194. echo  ║   Example:  To install from distribution diskette in floppy     ║
  195. echo  ║             drive A: to a hard disk (Fixed Disk) referred to    ║
  196. echo  ║             as drive C: use the following command               ║
  197. echo  ║                                                                 ║
  198. echo  ║                        A:REINSTAL A C                           ║
  199. echo  ║                                                                 ║
  200. echo  ╚═════════════════════════════════════════════════════════════════╝
  201. :end
  202. cd\
  203. cd %1:\ 2>nul
  204. cd %2:\ 2>nul
  205.